const EventEmitter = require('events')
const eve = new EventEmitter()
console.log(EventTarget)
function fn1(){
    console.log('fn1')
}
function fn2(){
    console.log('fn1')
}
function fn3(){
    console.log('fn1')
}
function fn4(){
    console.log('fn1')
}


eve.on('test',fn1)
eve.on('test',fn2)
eve.on('test',fn3)
eve.on('test',fn4)
eve.on('test1',fn1)
// console.log(eve.listeners('test'))
eve.removeAllListeners('test')
eve.emit('test')
// eve.emit('test1')